package model

import (
	"time"
)

// Users 
type Users struct {
	Id *int `db:"id" json:"id"`
	Username string `db:"username" json:"username"`
	Email string `db:"email" json:"email"`
	Password string `db:"password" json:"password"`
	Phone *string `db:"phone" json:"phone"`
	Avatar *string `db:"avatar" json:"avatar"`
	Status *int `db:"status" json:"status"`
	CreatedAt *time.Time `db:"created_at" json:"created_at"`
	UpdatedAt *time.Time `db:"updated_at" json:"updated_at"`
}

// TableName 返回表名
func (Users) TableName() string {
	return "users"
}
